package cn.tedu.tea.adapter.common.response;

import lombok.Data;

@Data
public class ResultVO {
    private int code;
    private String message;
    private Object data;

    public ResultVO(int code, String message, Object data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }
    public ResultVO(AppCode appCode,Object data){
        this.code = appCode.getCode();
        this.message = appCode.getMessage();
        this.data = data;
    }
    public ResultVO(Object data){
        this.code = AppCode.SUCCESS.getCode();
        this.message = AppCode.SUCCESS.getMessage();
        this.data = data;
    }
}
